Skip to content

Add optional stdio transport to marketing example servers - #85

Merged
antonpk1 merged 2 commits into
mainfrom
add-stdio-transport
Dec 8, 2025
Merged

Add optional stdio transport to marketing example servers#85
antonpk1 merged 2 commits into
mainfrom
add-stdio-transport

Conversation

@antonpk1

@antonpk1 antonpk1 commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Add support for --stdio flag to all 5 marketing example servers
  • When launched with --stdio, servers use StdioServerTransport instead of starting an HTTP server
  • Enables direct integration with Claude Desktop and other MCP clients that use stdio transport

Changes

  • examples/budget-allocator-server/server.ts
  • examples/cohort-heatmap-server/server.ts
  • examples/customer-segmentation-server/server.ts
  • examples/scenario-modeler-server/server.ts
  • examples/system-monitor-server/server.ts

Usage

# HTTP mode (default)
bun examples/budget-allocator-server/server.ts

# stdio mode
bun examples/budget-allocator-server/server.ts --stdio

Test plan

  • Verify TypeScript compiles without errors
  • Test HTTP mode still works: bun examples/budget-allocator-server/server.ts
  • Test stdio mode: bun examples/budget-allocator-server/server.ts --stdio
  • Test with MCP Inspector: npx @modelcontextprotocol/inspector@latest bun examples/budget-allocator-server/server.ts --stdio
  • Test with Claude Desktop using stdio config

🤖 Generated with Claude Code

When launched with --stdio flag, servers use StdioServerTransport
instead of starting an HTTP server. This enables direct integration
with Claude Desktop and other MCP clients that use stdio transport.

Usage:
  bun examples/budget-allocator-server/server.ts --stdio

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Dec 8, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@85

commit: d6ff3d9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

@ochafik ochafik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Anton!

@antonpk1
antonpk1 merged commit 8f4a0c7 into main Dec 8, 2025
8 checks passed
@antonpk1
antonpk1 deleted the add-stdio-transport branch December 8, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants